package com.liu.QQ;

import java.io.Serializable;

/**
 * 客户端和服务器通信的消息对象
 *
 * @author liuchengjie
 */
public class Message implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 发送方
     */
    private String sender;
    /**
     * 接收者
     */
    private String getter;
    /**
     * 内容
     */
    private String content;
    /**
     * 发送时间
     */
    private String sendTime;
    /**
     * 在接口定义消息类型
     * 消息类型
     */
    private String mesType;

    public Message() {
    }

    public Message(String sender, String getter, String content, String sendTime, String mesType) {
        this.sender = sender;
        this.getter = getter;
        this.content = content;
        this.sendTime = sendTime;
        this.mesType = mesType;
    }

    public String getMesType() {
        return mesType;
    }

    public void setMesType(String mesType) {
        this.mesType = mesType;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getGetter() {
        return getter;
    }

    public void setGetter(String getter) {
        this.getter = getter;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }
}
